package com.gw.vip.server.service.dao_service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gw.vip.server.dao.HisTransLockMapper;
import com.gw.vip.server.po.HisTransLock;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;

/**
 * @author GW
 * @description
 * @since 2022-05-10
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class HisTransLockService extends ServiceImpl<HisTransLockMapper, HisTransLock> {

    private final HisTransLockMapper mapper;

    public int countByClearDate(LocalDate clearDate) {
        return this.mapper.countByClearDate(clearDate);
    }

    public void tmpTransAccLockToHis(LocalDate clearDate) {
        this.mapper.tmpTransAccLockToHis(clearDate);
    }
}
